import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/forum/:fid',
      name: 'forum',
      component: () => import(/* webpackChunkName: "forum" */ './views/Forum.vue')
    },
    {
      path: '/topic/:tid',
      name: 'topic',
      component: () => import(/* webpackChunkName: "ttp" */ './views/Topic.vue')
    },
    {
      path: '/post/:fid',
      name: 'post',
      component: () => import(/* webpackChunkName: "post" */ './views/Post.vue')
    }
  ]
})
